Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Setting Points and Vectors


Q3Vector2D_Set

You can use the Q3Vector2D_Set function to set the scalar components of a two-dimensional vector.

TQ3Vector2D *Q3Vector2D_Set (
TQ3Vector2D *vector2D, 
float x, 
float y);
vector2D
A two-dimensional vector.
x
The x scalar component of the vector.
y
The y scalar component of the vector.
DESCRIPTION
The Q3Vector2D_Set function returns, as its function result and in the vector2D parameter, the two-dimensional vector whose scalar components are specified by the x and y parameters.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996